import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/device_type_tree_new_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/device_type_tree_new_entity.g.dart';

@JsonSerializable()
class DeviceTypeTreeNewEntity {
	late int companyId = 0;
	late List<DeviceTypeTreeNewTreeSelects> treeSelects = [];
	late String companyName = '';

	DeviceTypeTreeNewEntity();

	factory DeviceTypeTreeNewEntity.fromJson(Map<String, dynamic> json) => $DeviceTypeTreeNewEntityFromJson(json);

	Map<String, dynamic> toJson() => $DeviceTypeTreeNewEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceTypeTreeNewTreeSelects {
	late int id = 0;
	late String label = '';
	late String typeCode = '';
	late int sort = 0;
	late int parentId = 0;

	DeviceTypeTreeNewTreeSelects();

	factory DeviceTypeTreeNewTreeSelects.fromJson(Map<String, dynamic> json) => $DeviceTypeTreeNewTreeSelectsFromJson(json);

	Map<String, dynamic> toJson() => $DeviceTypeTreeNewTreeSelectsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}